import React, { Component } from 'react';
 import {
  AppRegistry,
  StyleSheet,
  Text,
  View,
  WebView,
  Dimensions,
  Platform
 } from 'react-native';

// import STRING from '../const_string_zh_CN';
const { width, height } = Dimensions.get('window');
const marginTop = Platform.OS === 'ios' ? 20 : 0;
const DEFAULT_URL = 'http://mp.weixin.qq.com/s?__biz=MzU5MzAyOTIzNg==&mid=2247483844&idx=1&sn=d2466e4755e446e36f4440d7dff77e88&chksm=fe17f0dfc96079c998205a31f0191110cb2f80b458aa0e7c925d3a1d704eceb458d40cb21565&mpshare=1&scene=23&srcid=06299sLRsCWZ2tj3BxCyIBNU#rd';
export default class tab_message extends Component {
        constructor(props){  
        super(props);  
  
        this.state = {  
            navTitle :"",  
            scalesPageToFit:true,
            url:DEFAULT_URL
        }  
  
    }  
      render() {
          return (
            <View style={{flex:1}}>
                <WebView style={styles.webview_style}  
                        ref="webViewRef"  
                        source={{uri: this.state.url}}
                         javaScriptEnabled={true}  
                         domStorageEnabled={true}  
                         startInLoadingState={true}  
                         scalesPageToFit={true}  
                         />  
            </View>
          );
      }
  }

const styles = StyleSheet.create({
    webview_style:{  
        backgroundColor:'white',  
    },  
  });

